projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a353b30
)
(check-ispell-version): Don't use match-beginning
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 20:28:33 +0000
(20:28 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 20:28:33 +0000
(20:28 +0000)
to check if the match succeeded.
lisp/textmodes/ispell.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/ispell.el
b/lisp/textmodes/ispell.el
index 77c98d9cf4db05b165be2be95cd6c45fd163a106..9776b74753bd1e64c7c9e9e4f00ffe38954ee766 100644
(file)
--- a/
lisp/textmodes/ispell.el
+++ b/
lisp/textmodes/ispell.el
@@
-747,8
+747,7
@@
Otherwise returns the library path if defined."
ispell-version))
(message result))
;; return library path.
- (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t)
- (if (match-beginning 0)
+ (if (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t)
(setq result (buffer-substring (match-beginning 1) (match-end 1)))))
(goto-char (point-min))
(if (not (memq status '(0 nil)))